<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>修改密码</title>
    <th:block th:include="import :: links"></th:block>
</head>
<body>
<header>
    <th:block th:include="import :: navigation"></th:block>
</header>
<section class="container" style="margin-top: 60px;">
    <div class="row" id="dataContent">
        <ol class="breadcrumb col-md-12">
            <li><a href="/index.html">首页</a></li>
            <li class="active">修改密码</li>
        </ol>
        <div class="col-md-12">
            <form class="form-horizontal" id="profilePwdForm" method="post">

                <div class="form-group">
                    <label for="oldPwd" class="col-sm-2 control-label">原密码</label>
                    <div class="col-sm-8">
                        <input type="password" class="form-control" id="oldPwd" name="oldPwd" placeholder="原密码"/>
                    </div>
                    <div class="help-block col-md-2"></div>
                </div>

                <div class="form-group">
                    <label for="newPwd" class="col-sm-2 control-label">新密码</label>
                    <div class="col-sm-8">
                        <input type="password" class="form-control" id="newPwd" name="newPwd" placeholder="新密码"/>
                    </div>
                    <div class="help-block col-md-2"></div>
                </div>

                <div class="form-group">
                    <label for="savePwd" class="col-sm-2 control-label">重复密码</label>
                    <div class="col-sm-8">
                        <input type="password" class="form-control" id="savePwd" name="savePwd" placeholder="重复密码"/>
                    </div>
                    <div class="help-block col-md-2"></div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
                        <button type="submit" id="btn-pwd-save" class="btn btn-success">修改</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</section>
<footer id="footer"></footer>
<th:block th:include="import :: impJS"></th:block>
<script type="text/javascript" th:src="@{/js/profile/updatePwd.js}"></script>
</body>
</html>